home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12750 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  32 lines

  1. Newsgroups: comp.unix.programmer,comp.lang.c
  2. Path: howland.reston.ans.net!torn!nott!emr1!news
  3. From: Stephane Charette <charrick@netrover.com>
  4. Subject: Applying file masks in UNIX using C/C++
  5. X-Nntp-Posting-Host: pc20.ccg.emr.ca
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <31618AFE.5476@netrover.com>
  8. Sender: news@emr1.emr.ca
  9. Content-Transfer-Encoding: 7bit
  10. Organization: Natural Resources Canada, Ottawa
  11. Mime-Version: 1.0
  12. Date: Tue, 2 Apr 1996 20:15:58 GMT
  13. X-Mailer: Mozilla 2.01 (Win16; I)
  14.  
  15. This is a long shot...but...does anyone know of the existence
  16. of public domain C/C++ code which will apply a file mask to
  17. an existing filename and return a TRUE or FALSE response?
  18.  
  19. For example:  if I have a mask of "a??01.text.*" and I have
  20. the files "abc01.text.old", "az01.text.new" and "az01.text",
  21. then it would return positive on the first two, but negative
  22. on the last.  Does this make sense?
  23.  
  24. What I hope, is that someone has already done all of this and
  25. put it up there on an FTP site.  Thing is, I can't find it...
  26. WWW searches have turned up nothing so far either.  (The fact
  27. that I have no idea what this would be called doesn't help.)
  28.  
  29. Thanks for your help,
  30.  
  31. Stephane Charette
  32.